<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>esapi.core</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="esapi-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="esapi-module.html">Package&nbsp;esapi</a> ::
        Module&nbsp;core
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="esapi.core-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="esapi.core-module.html">Module esapi.core</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment">#!/usr/bin/python</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"># -*- coding: utf-8 -*-</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-docstring">@license: OWASP Enterprise Security API (ESAPI)</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-docstring">     </tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-docstring">    This file is part of the Open Web Application Security Project (OWASP)</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-docstring">    Enterprise Security API (ESAPI) project. For details, please see</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-docstring">    U{http://www.owasp.org/index.php/ESAPI&lt;http://www.owasp.org/index.php/ESAPI&gt;}.</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-docstring">    The ESAPI is published by OWASP under the BSD license. You should read and </tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-docstring">    accept the LICENSE before you use, modify, and/or redistribute this software.</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-docstring">@summary: ESAPI locator class is provided to make it easy to gain access to the</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-docstring">    current ESAPI classes in use.</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-docstring">@copyright: Copyright (c) 2009 - The OWASP Foundation</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-docstring">@author: Craig Younkins (craig.younkins@owasp.org)</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="ESAPI"></a><div id="ESAPI-def"><a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-comment"># Todo</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-comment"># IMPORTS AT THE BOTTOM TO PREVENT CIRCULAR IMPORTS</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">         </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt> <a class="py-toggle" href="#" id="ESAPI-toggle" onclick="return toggle('ESAPI');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="esapi.core.ESAPI-class.html">ESAPI</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>  </tt>
</div><a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">    <tt id="link-0" class="py-name" targets="Variable esapi.core.ESAPI._log_factory=esapi.core.ESAPI-class.html#_log_factory"><a title="esapi.core.ESAPI._log_factory" class="py-name" href="#" onclick="return doclink('link-0', '_log_factory', 'link-0');">_log_factory</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">    <tt id="link-1" class="py-name" targets="Variable esapi.core.ESAPI._security_configuration=esapi.core.ESAPI-class.html#_security_configuration"><a title="esapi.core.ESAPI._security_configuration" class="py-name" href="#" onclick="return doclink('link-1', '_security_configuration', 'link-1');">_security_configuration</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">     </tt>
<a name="ESAPI.gen_get_method"></a><div id="ESAPI.gen_get_method-def"><a name="L28"></a><tt class="py-lineno"> 28</tt> <a class="py-toggle" href="#" id="ESAPI.gen_get_method-toggle" onclick="return toggle('ESAPI.gen_get_method');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.core.ESAPI-class.html#gen_get_method">gen_get_method</a><tt class="py-op">(</tt><tt class="py-param">interface</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ESAPI.gen_get_method-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ESAPI.gen_get_method-expanded"><a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">        <tt class="py-comment"># store instances in cls._interface</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">        <tt class="py-comment"># eg. cls._encoder</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">        <tt class="py-name">priv_attr</tt> <tt class="py-op">=</tt> <tt class="py-string">'_'</tt> <tt class="py-op">+</tt> <tt class="py-name">interface</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">         </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">        <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">        <tt class="py-keyword">def</tt> <tt class="py-def-name">func</tt><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Method esapi.ihttp.ISession.get()=esapi.ihttp.ISession-class.html#get,Method esapi.test.http.mock_session.MockSession.get()=esapi.test.http.mock_session.MockSession-class.html#get"><a title="esapi.ihttp.ISession.get
esapi.test.http.mock_session.MockSession.get" class="py-name" href="#" onclick="return doclink('link-2', 'get', 'link-2');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">priv_attr</tt><tt class="py-op">)</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">                <tt class="py-name">klass</tt> <tt class="py-op">=</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Class Method esapi.core.ESAPI.security_configuration()=esapi.core.ESAPI-class.html#security_configuration,Module esapi.security_configuration=esapi.security_configuration-module.html"><a title="esapi.core.ESAPI.security_configuration
esapi.security_configuration" class="py-name" href="#" onclick="return doclink('link-3', 'security_configuration', 'link-3');">security_configuration</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Method esapi.reference.default_security_configuration.DefaultSecurityConfiguration.get_class_for_interface()=esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_class_for_interface,Method esapi.security_configuration.SecurityConfiguration.get_class_for_interface()=esapi.security_configuration.SecurityConfiguration-class.html#get_class_for_interface"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration.get_class_for_interface
esapi.security_configuration.SecurityConfiguration.get_class_for_interface" class="py-name" href="#" onclick="return doclink('link-4', 'get_class_for_interface', 'link-4');">get_class_for_interface</a></tt><tt class="py-op">(</tt><tt class="py-name">interface</tt><tt class="py-op">)</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">                <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">priv_attr</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">klass</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name"><a title="esapi.ihttp.ISession.get
esapi.test.http.mock_session.MockSession.get" class="py-name" href="#" onclick="return doclink('link-5', 'get', 'link-2');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">priv_attr</tt><tt class="py-op">)</tt> </tt>
</div><a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">             </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">func</tt> </tt>
</div><a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">         </tt>
<a name="ESAPI.gen_set_method"></a><div id="ESAPI.gen_set_method-def"><a name="L42"></a><tt class="py-lineno"> 42</tt> <a class="py-toggle" href="#" id="ESAPI.gen_set_method-toggle" onclick="return toggle('ESAPI.gen_set_method');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.core.ESAPI-class.html#gen_set_method">gen_set_method</a><tt class="py-op">(</tt><tt class="py-param">interface</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ESAPI.gen_set_method-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ESAPI.gen_set_method-expanded"><a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">        <tt class="py-name">priv_attr</tt> <tt class="py-op">=</tt> <tt class="py-string">'_'</tt> <tt class="py-op">+</tt> <tt class="py-name">interface</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">         </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">        <tt class="py-keyword">def</tt> <tt class="py-def-name">func</tt><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">new_value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">priv_attr</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">new_value</tt> </tt>
</div></div><a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">             </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">     </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">    <tt id="link-6" class="py-name" targets="Module esapi.access_controller=esapi.access_controller-module.html,Class Method esapi.core.ESAPI.access_controller()=esapi.core.ESAPI-class.html#access_controller"><a title="esapi.access_controller
esapi.core.ESAPI.access_controller" class="py-name" href="#" onclick="return doclink('link-6', 'access_controller', 'link-6');">access_controller</a></tt> <tt class="py-op">=</tt> <tt id="link-7" class="py-name" targets="Method esapi.core.ESAPI.gen_get_method()=esapi.core.ESAPI-class.html#gen_get_method"><a title="esapi.core.ESAPI.gen_get_method" class="py-name" href="#" onclick="return doclink('link-7', 'gen_get_method', 'link-7');">gen_get_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'access_controller'</tt><tt class="py-op">)</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">    <tt id="link-8" class="py-name" targets="Class Method esapi.core.ESAPI.set_access_controller()=esapi.core.ESAPI-class.html#set_access_controller"><a title="esapi.core.ESAPI.set_access_controller" class="py-name" href="#" onclick="return doclink('link-8', 'set_access_controller', 'link-8');">set_access_controller</a></tt> <tt class="py-op">=</tt> <tt id="link-9" class="py-name"><a title="esapi.core.ESAPI.gen_get_method" class="py-name" href="#" onclick="return doclink('link-9', 'gen_get_method', 'link-7');">gen_get_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'access_controller'</tt><tt class="py-op">)</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">             </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">    <tt id="link-10" class="py-name" targets="Module esapi.authenticator=esapi.authenticator-module.html,Class Method esapi.core.ESAPI.authenticator()=esapi.core.ESAPI-class.html#authenticator"><a title="esapi.authenticator
esapi.core.ESAPI.authenticator" class="py-name" href="#" onclick="return doclink('link-10', 'authenticator', 'link-10');">authenticator</a></tt> <tt class="py-op">=</tt> <tt id="link-11" class="py-name"><a title="esapi.core.ESAPI.gen_get_method" class="py-name" href="#" onclick="return doclink('link-11', 'gen_get_method', 'link-7');">gen_get_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'authenticator'</tt><tt class="py-op">)</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">    <tt id="link-12" class="py-name" targets="Variable esapi.core.ESAPI.set_authenticator=esapi.core.ESAPI-class.html#set_authenticator"><a title="esapi.core.ESAPI.set_authenticator" class="py-name" href="#" onclick="return doclink('link-12', 'set_authenticator', 'link-12');">set_authenticator</a></tt> <tt class="py-op">=</tt> <tt id="link-13" class="py-name" targets="Method esapi.core.ESAPI.gen_set_method()=esapi.core.ESAPI-class.html#gen_set_method"><a title="esapi.core.ESAPI.gen_set_method" class="py-name" href="#" onclick="return doclink('link-13', 'gen_set_method', 'link-13');">gen_set_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'authenticator'</tt><tt class="py-op">)</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">    <tt id="link-14" class="py-name" targets="Class Method esapi.core.ESAPI.encoder()=esapi.core.ESAPI-class.html#encoder,Module esapi.encoder=esapi.encoder-module.html"><a title="esapi.core.ESAPI.encoder
esapi.encoder" class="py-name" href="#" onclick="return doclink('link-14', 'encoder', 'link-14');">encoder</a></tt> <tt class="py-op">=</tt> <tt id="link-15" class="py-name"><a title="esapi.core.ESAPI.gen_get_method" class="py-name" href="#" onclick="return doclink('link-15', 'gen_get_method', 'link-7');">gen_get_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'encoder'</tt><tt class="py-op">)</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">    <tt id="link-16" class="py-name" targets="Variable esapi.core.ESAPI.set_encoder=esapi.core.ESAPI-class.html#set_encoder,Method esapi.reference.validation.base_validation_rule.BaseValidationRule.set_encoder()=esapi.reference.validation.base_validation_rule.BaseValidationRule-class.html#set_encoder"><a title="esapi.core.ESAPI.set_encoder
esapi.reference.validation.base_validation_rule.BaseValidationRule.set_encoder" class="py-name" href="#" onclick="return doclink('link-16', 'set_encoder', 'link-16');">set_encoder</a></tt> <tt class="py-op">=</tt> <tt id="link-17" class="py-name"><a title="esapi.core.ESAPI.gen_set_method" class="py-name" href="#" onclick="return doclink('link-17', 'gen_set_method', 'link-13');">gen_set_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'encoder'</tt><tt class="py-op">)</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">     </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">    <tt id="link-18" class="py-name" targets="Class Method esapi.core.ESAPI.encryptor()=esapi.core.ESAPI-class.html#encryptor,Module esapi.encryptor=esapi.encryptor-module.html"><a title="esapi.core.ESAPI.encryptor
esapi.encryptor" class="py-name" href="#" onclick="return doclink('link-18', 'encryptor', 'link-18');">encryptor</a></tt> <tt class="py-op">=</tt> <tt id="link-19" class="py-name"><a title="esapi.core.ESAPI.gen_get_method" class="py-name" href="#" onclick="return doclink('link-19', 'gen_get_method', 'link-7');">gen_get_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'encryptor'</tt><tt class="py-op">)</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">    <tt id="link-20" class="py-name" targets="Variable esapi.core.ESAPI.set_encryptor=esapi.core.ESAPI-class.html#set_encryptor"><a title="esapi.core.ESAPI.set_encryptor" class="py-name" href="#" onclick="return doclink('link-20', 'set_encryptor', 'link-20');">set_encryptor</a></tt> <tt class="py-op">=</tt> <tt id="link-21" class="py-name"><a title="esapi.core.ESAPI.gen_set_method" class="py-name" href="#" onclick="return doclink('link-21', 'gen_set_method', 'link-13');">gen_set_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'encryptor'</tt><tt class="py-op">)</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">     </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">    <tt id="link-22" class="py-name" targets="Class Method esapi.core.ESAPI.randomizer()=esapi.core.ESAPI-class.html#randomizer,Module esapi.randomizer=esapi.randomizer-module.html"><a title="esapi.core.ESAPI.randomizer
esapi.randomizer" class="py-name" href="#" onclick="return doclink('link-22', 'randomizer', 'link-22');">randomizer</a></tt> <tt class="py-op">=</tt> <tt id="link-23" class="py-name"><a title="esapi.core.ESAPI.gen_get_method" class="py-name" href="#" onclick="return doclink('link-23', 'gen_get_method', 'link-7');">gen_get_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'randomizer'</tt><tt class="py-op">)</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">    <tt id="link-24" class="py-name" targets="Variable esapi.core.ESAPI.set_randomizer=esapi.core.ESAPI-class.html#set_randomizer"><a title="esapi.core.ESAPI.set_randomizer" class="py-name" href="#" onclick="return doclink('link-24', 'set_randomizer', 'link-24');">set_randomizer</a></tt> <tt class="py-op">=</tt> <tt id="link-25" class="py-name"><a title="esapi.core.ESAPI.gen_set_method" class="py-name" href="#" onclick="return doclink('link-25', 'gen_set_method', 'link-13');">gen_set_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'randomizer'</tt><tt class="py-op">)</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">     </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">    <tt id="link-26" class="py-name" targets="Class Method esapi.core.ESAPI.user()=esapi.core.ESAPI-class.html#user,Module esapi.user=esapi.user-module.html"><a title="esapi.core.ESAPI.user
esapi.user" class="py-name" href="#" onclick="return doclink('link-26', 'user', 'link-26');">user</a></tt> <tt class="py-op">=</tt> <tt id="link-27" class="py-name"><a title="esapi.core.ESAPI.gen_get_method" class="py-name" href="#" onclick="return doclink('link-27', 'gen_get_method', 'link-7');">gen_get_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'user'</tt><tt class="py-op">)</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">    <tt id="link-28" class="py-name" targets="Variable esapi.core.ESAPI.set_user=esapi.core.ESAPI-class.html#set_user"><a title="esapi.core.ESAPI.set_user" class="py-name" href="#" onclick="return doclink('link-28', 'set_user', 'link-28');">set_user</a></tt> <tt class="py-op">=</tt> <tt id="link-29" class="py-name"><a title="esapi.core.ESAPI.gen_set_method" class="py-name" href="#" onclick="return doclink('link-29', 'gen_set_method', 'link-13');">gen_set_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'user'</tt><tt class="py-op">)</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">     </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">    <tt id="link-30" class="py-name" targets="Class Method esapi.core.ESAPI.validator()=esapi.core.ESAPI-class.html#validator,Module esapi.validator=esapi.validator-module.html"><a title="esapi.core.ESAPI.validator
esapi.validator" class="py-name" href="#" onclick="return doclink('link-30', 'validator', 'link-30');">validator</a></tt> <tt class="py-op">=</tt> <tt id="link-31" class="py-name"><a title="esapi.core.ESAPI.gen_get_method" class="py-name" href="#" onclick="return doclink('link-31', 'gen_get_method', 'link-7');">gen_get_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'validator'</tt><tt class="py-op">)</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">    <tt id="link-32" class="py-name" targets="Variable esapi.core.ESAPI.set_validator=esapi.core.ESAPI-class.html#set_validator"><a title="esapi.core.ESAPI.set_validator" class="py-name" href="#" onclick="return doclink('link-32', 'set_validator', 'link-32');">set_validator</a></tt> <tt class="py-op">=</tt> <tt id="link-33" class="py-name"><a title="esapi.core.ESAPI.gen_set_method" class="py-name" href="#" onclick="return doclink('link-33', 'gen_set_method', 'link-13');">gen_set_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'validator'</tt><tt class="py-op">)</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">     </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">    <tt id="link-34" class="py-name" targets="Class Method esapi.core.ESAPI.http_utilities()=esapi.core.ESAPI-class.html#http_utilities,Module esapi.http_utilities=esapi.http_utilities-module.html"><a title="esapi.core.ESAPI.http_utilities
esapi.http_utilities" class="py-name" href="#" onclick="return doclink('link-34', 'http_utilities', 'link-34');">http_utilities</a></tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name"><a title="esapi.core.ESAPI.gen_get_method" class="py-name" href="#" onclick="return doclink('link-35', 'gen_get_method', 'link-7');">gen_get_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'http_utilities'</tt><tt class="py-op">)</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">    <tt id="link-36" class="py-name" targets="Variable esapi.core.ESAPI.set_http_utilities=esapi.core.ESAPI-class.html#set_http_utilities"><a title="esapi.core.ESAPI.set_http_utilities" class="py-name" href="#" onclick="return doclink('link-36', 'set_http_utilities', 'link-36');">set_http_utilities</a></tt> <tt class="py-op">=</tt> <tt id="link-37" class="py-name"><a title="esapi.core.ESAPI.gen_set_method" class="py-name" href="#" onclick="return doclink('link-37', 'gen_set_method', 'link-13');">gen_set_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'http_utilities'</tt><tt class="py-op">)</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">     </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">    <tt id="link-38" class="py-name" targets="Class Method esapi.core.ESAPI.intrusion_detector()=esapi.core.ESAPI-class.html#intrusion_detector,Module esapi.intrusion_detector=esapi.intrusion_detector-module.html"><a title="esapi.core.ESAPI.intrusion_detector
esapi.intrusion_detector" class="py-name" href="#" onclick="return doclink('link-38', 'intrusion_detector', 'link-38');">intrusion_detector</a></tt> <tt class="py-op">=</tt> <tt id="link-39" class="py-name"><a title="esapi.core.ESAPI.gen_get_method" class="py-name" href="#" onclick="return doclink('link-39', 'gen_get_method', 'link-7');">gen_get_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'intrusion_detector'</tt><tt class="py-op">)</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">    <tt id="link-40" class="py-name" targets="Variable esapi.core.ESAPI.set_intrusion_detector=esapi.core.ESAPI-class.html#set_intrusion_detector"><a title="esapi.core.ESAPI.set_intrusion_detector" class="py-name" href="#" onclick="return doclink('link-40', 'set_intrusion_detector', 'link-40');">set_intrusion_detector</a></tt> <tt class="py-op">=</tt> <tt id="link-41" class="py-name"><a title="esapi.core.ESAPI.gen_set_method" class="py-name" href="#" onclick="return doclink('link-41', 'gen_set_method', 'link-13');">gen_set_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'intrusion_detector'</tt><tt class="py-op">)</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">     </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">    <tt id="link-42" class="py-name" targets="Class Method esapi.core.ESAPI.executor()=esapi.core.ESAPI-class.html#executor,Module esapi.executor=esapi.executor-module.html"><a title="esapi.core.ESAPI.executor
esapi.executor" class="py-name" href="#" onclick="return doclink('link-42', 'executor', 'link-42');">executor</a></tt> <tt class="py-op">=</tt> <tt id="link-43" class="py-name"><a title="esapi.core.ESAPI.gen_get_method" class="py-name" href="#" onclick="return doclink('link-43', 'gen_get_method', 'link-7');">gen_get_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'executor'</tt><tt class="py-op">)</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">    <tt id="link-44" class="py-name" targets="Variable esapi.core.ESAPI.set_executor=esapi.core.ESAPI-class.html#set_executor"><a title="esapi.core.ESAPI.set_executor" class="py-name" href="#" onclick="return doclink('link-44', 'set_executor', 'link-44');">set_executor</a></tt> <tt class="py-op">=</tt> <tt id="link-45" class="py-name"><a title="esapi.core.ESAPI.gen_set_method" class="py-name" href="#" onclick="return doclink('link-45', 'gen_set_method', 'link-13');">gen_set_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'executor'</tt><tt class="py-op">)</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line"> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="ESAPI.log_factory"></a><div id="ESAPI.log_factory-def"><a name="L81"></a><tt class="py-lineno"> 81</tt> <a class="py-toggle" href="#" id="ESAPI.log_factory-toggle" onclick="return toggle('ESAPI.log_factory');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.core.ESAPI-class.html#log_factory">log_factory</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ESAPI.log_factory-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ESAPI.log_factory-expanded"><a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line"><tt class="py-docstring">        Get the current LogFactory being used by ESAPI. If there isn't one yet,</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line"><tt class="py-docstring">        it will create one, and then return this same LogFactory from then on.</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"><tt class="py-docstring">        @return: The current LogFactory being used by ESAPI.</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-46" class="py-name"><a title="esapi.core.ESAPI._log_factory" class="py-name" href="#" onclick="return doclink('link-46', '_log_factory', 'link-0');">_log_factory</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">            <tt class="py-name">klass</tt> <tt class="py-op">=</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="esapi.core.ESAPI.security_configuration
esapi.security_configuration" class="py-name" href="#" onclick="return doclink('link-47', 'security_configuration', 'link-3');">security_configuration</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-48" class="py-name"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration.get_class_for_interface
esapi.security_configuration.SecurityConfiguration.get_class_for_interface" class="py-name" href="#" onclick="return doclink('link-48', 'get_class_for_interface', 'link-4');">get_class_for_interface</a></tt><tt class="py-op">(</tt><tt class="py-string">'log_factory'</tt><tt class="py-op">)</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name"><a title="esapi.core.ESAPI._log_factory" class="py-name" href="#" onclick="return doclink('link-49', '_log_factory', 'link-0');">_log_factory</a></tt> <tt class="py-op">=</tt> <tt class="py-name">klass</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="esapi.core.ESAPI._log_factory" class="py-name" href="#" onclick="return doclink('link-50', '_log_factory', 'link-0');">_log_factory</a></tt><tt class="py-op">.</tt><tt id="link-51" class="py-name" targets="Method esapi.log_factory.LogFactory.set_application_name()=esapi.log_factory.LogFactory-class.html#set_application_name,Method esapi.reference.python_log_factory.PythonLogFactory.set_application_name()=esapi.reference.python_log_factory.PythonLogFactory-class.html#set_application_name"><a title="esapi.log_factory.LogFactory.set_application_name
esapi.reference.python_log_factory.PythonLogFactory.set_application_name" class="py-name" href="#" onclick="return doclink('link-51', 'set_application_name', 'link-51');">set_application_name</a></tt><tt class="py-op">(</tt><tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="esapi.core.ESAPI.security_configuration
esapi.security_configuration" class="py-name" href="#" onclick="return doclink('link-52', 'security_configuration', 'link-3');">security_configuration</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-53" class="py-name" targets="Method esapi.reference.default_security_configuration.DefaultSecurityConfiguration.get_application_name()=esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html#get_application_name,Method esapi.security_configuration.SecurityConfiguration.get_application_name()=esapi.security_configuration.SecurityConfiguration-class.html#get_application_name"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration.get_application_name
esapi.security_configuration.SecurityConfiguration.get_application_name" class="py-name" href="#" onclick="return doclink('link-53', 'get_application_name', 'link-53');">get_application_name</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">             </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="esapi.core.ESAPI._log_factory" class="py-name" href="#" onclick="return doclink('link-54', '_log_factory', 'link-0');">_log_factory</a></tt> </tt>
</div><a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">         </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="ESAPI.set_log_factory"></a><div id="ESAPI.set_log_factory-def"><a name="L96"></a><tt class="py-lineno"> 96</tt> <a class="py-toggle" href="#" id="ESAPI.set_log_factory-toggle" onclick="return toggle('ESAPI.set_log_factory');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.core.ESAPI-class.html#set_log_factory">set_log_factory</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">factory</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ESAPI.set_log_factory-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ESAPI.set_log_factory-expanded"><a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"><tt class="py-docstring">        Change the current ESAPI LogFactory to the LogFactory provided. </tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"><tt class="py-docstring">        @param factory: the LogFactory to set to be the current ESAPI LogFactory. </tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-55" class="py-name"><a title="esapi.core.ESAPI._log_factory" class="py-name" href="#" onclick="return doclink('link-55', '_log_factory', 'link-0');">_log_factory</a></tt> <tt class="py-op">=</tt> <tt class="py-name">factory</tt> </tt>
</div><a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">           </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="ESAPI.logger"></a><div id="ESAPI.logger-def"><a name="L104"></a><tt class="py-lineno">104</tt> <a class="py-toggle" href="#" id="ESAPI.logger-toggle" onclick="return toggle('ESAPI.logger');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.core.ESAPI-class.html#logger">logger</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">key</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ESAPI.logger-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ESAPI.logger-expanded"><a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line"><tt class="py-docstring">        @param key: The class or module to associate the logger with.</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line"><tt class="py-docstring">        @return: The current Logger associated with the specified class.</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-56" class="py-name" targets="Class Method esapi.core.ESAPI.log_factory()=esapi.core.ESAPI-class.html#log_factory,Module esapi.log_factory=esapi.log_factory-module.html"><a title="esapi.core.ESAPI.log_factory
esapi.log_factory" class="py-name" href="#" onclick="return doclink('link-56', 'log_factory', 'link-56');">log_factory</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-57" class="py-name" targets="Method esapi.log_factory.LogFactory.get_logger()=esapi.log_factory.LogFactory-class.html#get_logger,Method esapi.reference.python_log_factory.PythonLogFactory.get_logger()=esapi.reference.python_log_factory.PythonLogFactory-class.html#get_logger"><a title="esapi.log_factory.LogFactory.get_logger
esapi.reference.python_log_factory.PythonLogFactory.get_logger" class="py-name" href="#" onclick="return doclink('link-57', 'get_logger', 'link-57');">get_logger</a></tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">)</tt> </tt>
</div><a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line"> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="ESAPI.log"></a><div id="ESAPI.log-def"><a name="L112"></a><tt class="py-lineno">112</tt> <a class="py-toggle" href="#" id="ESAPI.log-toggle" onclick="return toggle('ESAPI.log');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.core.ESAPI-class.html#log">log</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ESAPI.log-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ESAPI.log-expanded"><a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line"><tt class="py-docstring">        @return: The default logger</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">_default_logger</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">_default_logger</tt> <tt class="py-op">=</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-58" class="py-name"><a title="esapi.core.ESAPI._log_factory" class="py-name" href="#" onclick="return doclink('link-58', '_log_factory', 'link-0');">_log_factory</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name"><a title="esapi.log_factory.LogFactory.get_logger
esapi.reference.python_log_factory.PythonLogFactory.get_logger" class="py-name" href="#" onclick="return doclink('link-59', 'get_logger', 'link-57');">get_logger</a></tt><tt class="py-op">(</tt><tt class="py-string">"DefaultLogger"</tt><tt class="py-op">)</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">_default_logger</tt> </tt>
</div><a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line"> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="ESAPI.security_configuration"></a><div id="ESAPI.security_configuration-def"><a name="L121"></a><tt class="py-lineno">121</tt> <a class="py-toggle" href="#" id="ESAPI.security_configuration-toggle" onclick="return toggle('ESAPI.security_configuration');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.core.ESAPI-class.html#security_configuration">security_configuration</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">)</tt><tt class="py-op">:</tt>        </tt>
</div><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-60" class="py-name"><a title="esapi.core.ESAPI._security_configuration" class="py-name" href="#" onclick="return doclink('link-60', '_security_configuration', 'link-1');">_security_configuration</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">            <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-61" class="py-name"><a title="esapi.core.ESAPI._security_configuration" class="py-name" href="#" onclick="return doclink('link-61', '_security_configuration', 'link-1');">_security_configuration</a></tt> <tt class="py-op">=</tt> <tt id="link-62" class="py-name" targets="Class esapi.reference.default_security_configuration.DefaultSecurityConfiguration=esapi.reference.default_security_configuration.DefaultSecurityConfiguration-class.html"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration" class="py-name" href="#" onclick="return doclink('link-62', 'DefaultSecurityConfiguration', 'link-62');">DefaultSecurityConfiguration</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-63" class="py-name"><a title="esapi.core.ESAPI._security_configuration" class="py-name" href="#" onclick="return doclink('link-63', '_security_configuration', 'link-1');">_security_configuration</a></tt> </tt>
</div><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">        </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">    <tt id="link-64" class="py-name" targets="Variable esapi.core.ESAPI.set_security_configuration=esapi.core.ESAPI-class.html#set_security_configuration"><a title="esapi.core.ESAPI.set_security_configuration" class="py-name" href="#" onclick="return doclink('link-64', 'set_security_configuration', 'link-64');">set_security_configuration</a></tt> <tt class="py-op">=</tt> <tt id="link-65" class="py-name"><a title="esapi.core.ESAPI.gen_set_method" class="py-name" href="#" onclick="return doclink('link-65', 'gen_set_method', 'link-13');">gen_set_method</a></tt><tt class="py-op">(</tt><tt class="py-string">'security_configuration'</tt><tt class="py-op">)</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">     </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="ESAPI.current_request"></a><div id="ESAPI.current_request-def"><a name="L129"></a><tt class="py-lineno">129</tt> <a class="py-toggle" href="#" id="ESAPI.current_request-toggle" onclick="return toggle('ESAPI.current_request');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.core.ESAPI-class.html#current_request">current_request</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ESAPI.current_request-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ESAPI.current_request-expanded"><a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-66" class="py-name"><a title="esapi.core.ESAPI.http_utilities
esapi.http_utilities" class="py-name" href="#" onclick="return doclink('link-66', 'http_utilities', 'link-34');">http_utilities</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-67" class="py-name" targets="Class Method esapi.core.ESAPI.current_request()=esapi.core.ESAPI-class.html#current_request"><a title="esapi.core.ESAPI.current_request" class="py-name" href="#" onclick="return doclink('link-67', 'current_request', 'link-67');">current_request</a></tt> </tt>
</div><a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">     </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">classmethod</tt> </tt>
<a name="ESAPI.current_response"></a><div id="ESAPI.current_response-def"><a name="L133"></a><tt class="py-lineno">133</tt> <a class="py-toggle" href="#" id="ESAPI.current_response-toggle" onclick="return toggle('ESAPI.current_response');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="esapi.core.ESAPI-class.html#current_response">current_response</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ESAPI.current_response-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ESAPI.current_response-expanded"><a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt id="link-68" class="py-name"><a title="esapi.core.ESAPI.http_utilities
esapi.http_utilities" class="py-name" href="#" onclick="return doclink('link-68', 'http_utilities', 'link-34');">http_utilities</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-69" class="py-name" targets="Class Method esapi.core.ESAPI.current_response()=esapi.core.ESAPI-class.html#current_response"><a title="esapi.core.ESAPI.current_response" class="py-name" href="#" onclick="return doclink('link-69', 'current_response', 'link-69');">current_response</a></tt> </tt>
</div></div><a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line"> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">     </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line"> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-70" class="py-name" targets="Package esapi=esapi-module.html"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-70', 'esapi', 'link-70');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-71" class="py-name" targets="Package esapi.conf=esapi.conf-module.html,Package esapi.test.conf=esapi.test.conf-module.html"><a title="esapi.conf
esapi.test.conf" class="py-name" href="#" onclick="return doclink('link-71', 'conf', 'link-71');">conf</a></tt><tt class="py-op">.</tt><tt id="link-72" class="py-name" targets="Module esapi.conf.settings=esapi.conf.settings-module.html,Module esapi.test.conf.settings=esapi.test.conf.settings-module.html"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-72', 'settings', 'link-72');">settings</a></tt> <tt class="py-keyword">as</tt> <tt id="link-73" class="py-name"><a title="esapi.conf.settings
esapi.test.conf.settings" class="py-name" href="#" onclick="return doclink('link-73', 'settings', 'link-72');">settings</a></tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-74" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-74', 'esapi', 'link-70');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-75" class="py-name" targets="Package esapi.reference=esapi.reference-module.html"><a title="esapi.reference" class="py-name" href="#" onclick="return doclink('link-75', 'reference', 'link-75');">reference</a></tt><tt class="py-op">.</tt><tt id="link-76" class="py-name" targets="Module esapi.reference.python_log_factory=esapi.reference.python_log_factory-module.html"><a title="esapi.reference.python_log_factory" class="py-name" href="#" onclick="return doclink('link-76', 'python_log_factory', 'link-76');">python_log_factory</a></tt> <tt class="py-keyword">import</tt> <tt id="link-77" class="py-name" targets="Class esapi.reference.python_log_factory.PythonLogFactory=esapi.reference.python_log_factory.PythonLogFactory-class.html"><a title="esapi.reference.python_log_factory.PythonLogFactory" class="py-name" href="#" onclick="return doclink('link-77', 'PythonLogFactory', 'link-77');">PythonLogFactory</a></tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-78" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-78', 'esapi', 'link-70');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-79" class="py-name"><a title="esapi.reference" class="py-name" href="#" onclick="return doclink('link-79', 'reference', 'link-75');">reference</a></tt><tt class="py-op">.</tt><tt id="link-80" class="py-name" targets="Module esapi.reference.default_security_configuration=esapi.reference.default_security_configuration-module.html"><a title="esapi.reference.default_security_configuration" class="py-name" href="#" onclick="return doclink('link-80', 'default_security_configuration', 'link-80');">default_security_configuration</a></tt> <tt class="py-keyword">import</tt> <tt id="link-81" class="py-name"><a title="esapi.reference.default_security_configuration.DefaultSecurityConfiguration" class="py-name" href="#" onclick="return doclink('link-81', 'DefaultSecurityConfiguration', 'link-62');">DefaultSecurityConfiguration</a></tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-82" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-82', 'esapi', 'link-70');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-83" class="py-name" targets="Module esapi.translation=esapi.translation-module.html"><a title="esapi.translation" class="py-name" href="#" onclick="return doclink('link-83', 'translation', 'link-83');">translation</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">_</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line"> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-84" class="py-name"><a title="esapi" class="py-name" href="#" onclick="return doclink('link-84', 'esapi', 'link-70');">esapi</a></tt><tt class="py-op">.</tt><tt id="link-85" class="py-name" targets="Module esapi.exceptions=esapi.exceptions-module.html"><a title="esapi.exceptions" class="py-name" href="#" onclick="return doclink('link-85', 'exceptions', 'link-85');">exceptions</a></tt> <tt class="py-keyword">import</tt> <tt id="link-86" class="py-name" targets="Class esapi.exceptions.ConfigurationException=esapi.exceptions.ConfigurationException-class.html"><a title="esapi.exceptions.ConfigurationException" class="py-name" href="#" onclick="return doclink('link-86', 'ConfigurationException', 'link-86');">ConfigurationException</a></tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="esapi-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Nov  8 16:04:23 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
